import React, { Component } from 'react'
import {Switch} from 'react-router-dom'
//组件
import User from "../../views/user"
import Sailor from "../../views/Sailor/index"
import ManageRtmp from "../../views/detect"
import Video from "../../views/video/video"
import VideoShow from "../../views/video/index"
import Home from "../../views/homepage"
import Other from "../../views/other/index"
//私有路由组件
import PrivateRouter from "../privateRouter/index"
import addS from '../../views/Sailor/addS'
export default class ContainerMain extends Component {
  render() {
    return (
          <Switch>
              <PrivateRouter exact path="/index" component={Home}/>
              <PrivateRouter exact path="/index/user" component={User}/>
              <PrivateRouter path="/index/sailor/list" component={Sailor}/>
              <PrivateRouter path="/index/sailor/add" component={addS}/>
              <PrivateRouter path="/index/detect" component={ManageRtmp}/>
              <PrivateRouter path="/index/record" component={Video}/>
              <PrivateRouter path="/index/other" component={Other}/>
              {/* <PrivateRouter path="/jjkl" component={addS}/> */}

          </Switch>
          
    )
  }
}

